exercise qt 6.5.0 on macos CI (#1073)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 20 Apr 2023 19:21:41 +0000 (13:21 -0600)
committerGitHub <noreply@github.com>
Thu, 20 Apr 2023 19:21:41 +0000 (13:21 -0600)
.github/workflows/macos.yml
tools/ci_script_osx.sh

index cdf275c27c83dae28fe1b627ad6adac769397a73..ba7eee630b7d479df2175bd23e8485fdb13c0f6c 100644 (file)
@@ -33,6 +33,11 @@ jobs:
             GENERATOR: 'Ninja'
             RELEASE: true
             os: macos-12
+          - QT_VERSION: '6.5.0'
+            XCODE_VERSION: '14.2'
+            GENERATOR: 'Ninja'
+            RELEASE: false
+            os: macos-12
 
     steps:
     - name: Checkout repository
index acdfe2137934d57595b4ddbbd1cdf7b1e67ffe85..3cb759eeccd74fa09cc77dab6a3ec774f44b381c 100755 (executable)
@@ -3,7 +3,7 @@
 # this script is run on ci for the script stage of mac builds
 #
  
-function version_ge() { test "$(printf "%s\n%s" $1 $2 | sort -rV | head -n 1)" == "$1"; }
+function version_ge() { test "$(printf "%s\n%s" "$1" "$2" | sort -rV | head -n 1)" == "$1"; }
 
 if [ $# -lt 2 ]; then
   echo "Usage: $0 source_directory qt_version [Generator]"
@@ -17,7 +17,10 @@ if [ $# -ge 3 ]; then
     GENERATOR[1]=$3
   fi
 fi
-if version_ge "${QTVER}" 6.0.0; then
+if version_ge "${QTVER}" 6.5.0; then
+  DEPLOY_TARGET="11.0"
+  ARCHS="x86_64;arm64"
+elif version_ge "${QTVER}" 6.0.0; then
   DEPLOY_TARGET="10.14"
   ARCHS="x86_64;arm64"
 elif version_ge "${QTVER}" 5.14.0; then
@@ -29,7 +32,7 @@ else
 fi
   
 # we assume we are on macOS, so date is not gnu date.
-VERSIONID=${VERSIONID:-$(date -ju -f %Y-%m-%dT%H:%M:%S%z $(git show -s --format="%aI" HEAD | sed 's/:\(..\)$/\1/') +%Y%m%dT%H%MZ)-$(git rev-parse --short=7 HEAD)}
+VERSIONID=${VERSIONID:-$(date -ju -f %Y-%m-%dT%H:%M:%S%z "$(git show -s --format="%aI" HEAD | sed 's/:\(..\)$/\1/')" +%Y%m%dT%H%MZ)-$(git rev-parse --short=7 HEAD)}
 
 # debug tokens
 "$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)"/ci_tokens